﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section3
{
    public class Example05
    {
        public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Vector a = V.UnitVector.i + 2.0*V.UnitVector.j + 3.0*V.UnitVector.k;

            V.Vector b = -1.0*V.UnitVector.i - 1.0*V.UnitVector.k;

            V.Vector c = a % b;
            result += c.Length.ToString() + "\r\n";
            result += (2.0*Math.Sqrt(3.0)).ToString() + "\r\n";   
        }
    }
}

/* 3.46410161513775
   3.46410161513775 */  
